/*
 * =====================================================================================
 *
 *       Filename:  pad_sel.c
 *
 *    Description:
 *					1、pad复用参数获取
 *					2、提供参数获取接口给程序调用
 *
 *        Version:  1.0
 *        Created:  2019年1月24日 16时34分45秒
 *       Revision:  none
 *
 *         Author:  lixinde (lxd), lixinde@phytium.com.cn
 *        Company:  Phytium Technology Co.,Ltd
 *        License:  GPL-2.0+
 *
 * =====================================================================================
 */
#include "pad_sel.h"


pad_mux_info_t pad_info = {
	.magic = PARAMETER_PAD_SEL_MAGIC,
	.pad_sel_0 = 0xffffffff,
	.pad_sel_4 = 0xffffffff,
	.pad_sel_8 = 0xffffffff,
	.pad_sel_12 = 0xffffffff,
	.pad_sel_16 = 0xffffffff,
	.pad_sel_20 = 0xffffffff,
	.pad_sel_24 = 0xffffffff,
	.pad_sel_28 = 0xffffffff,
	.pad_sel_32 = 0xffffffff,
	.pad_sel_36 = 0xffffffff,
	.pad_sel_40 = 0xffffffff,
	.pad_sel_44 = 0xffffffff,
	};
static pad_mux_info_t * pad_ptr = &pad_info;

uint32_t pad_sel_config(FILE *fp)
{
     if(NULL == fp){
        printf("fp is point to NULL\n");
		return -1;
    }

	fseek(fp, PM_PAD_SEL_OFFSET	, 0);
	fwrite(&pad_info, sizeof(pad_mux_info_t), 1, fp);
	return 0;
}

